package sg.edu.nus.comp.icreate.ivletalk.module;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Module {
	private String code;
	private String name;
	private String id;
	private Map<ElementType, Element> elements;
	private List<ElementType> existence;

	public Module() {
		elements = new HashMap<ElementType, Element>();
		existence = new ArrayList<ElementType>();
		existence.add(ElementType.ANNOUNCEMENT);
	}

	public Map<ElementType, Element> getElements() {
		return elements;
	}

	public List<ElementType> getExistence() {
		return existence;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return code + ": " + name;
	}
}
